package com.elephant.core.designpattern.singleton;

/**
 * @author hai
 * @description
 * @date 10:28 2018/10/10
 */
public class Singleton1 {

    private Singleton1(){}
    private static class SingletonHolder{
        private static final Singleton1 INSTANCE = new Singleton1();
    }

    public static Singleton1 get(){
        return SingletonHolder.INSTANCE;
    }
}
